package com.hschinese.pronunciation.utils;

import android.os.Environment;

public class Constant {
	public static final String DISABLE_HARDWARE_ACCELERATED = "pref_disable_hardware_accelerated_key";

	public static final int FLAG_ZERO = 0;
	public static final int FLAG_ONE = 1;
	public static final int FLAG_TWO = 2;
	public static final int FLAG_THREE = 3;
	public static final int FLAG_FOUR = 4;
	public static final int FLAG_FIVE = 5;
	//HTML标签的换一行
	public static final String ONE_LINE ="<br>";
	/**
	 * 换两行
	 */
	public static final String TWO_LINE_NORMAL="\n\n";

	public static final String VERSION_CODE = "versionCode";

	public static final String FIRST_ENTRY = "firstEntry";

	public static final int SPLASH_DISPLAY_LENGTH = 5000; //启动界面显示时间

	//请求服务器超时时间
	public static final int CONNECTION_TIMEOUT = 1000*5;
	
	public static final int SO_CONNECTION__TIMEOUT = 1000*6;

	//请求服务器超时时间_短时间
	public static final int CONNECTION_SHORT_TIMEOUT = 1000*2;

	public static final String API_VERION = "2";

	public static final String CONTINUE_FLAG = "CONTINUE_FLAG";  //0代表正常进入  1代表点击继续按钮进入  2代表开始
	public static final String COURSE_RECORD = "course_record";//用户记录查看记录

	/**
	 * 普通换行符
	 */
	public static final String ONE_LINE_NORMAL="\n";
	/** 反馈邮箱地址 */
	public static final String[] FEEDBACK_EMAIL_TO = {"feedback@hschinese.com"};
	/** 反馈邮箱地址 */
	public static final String[] RATEUS_EMAIL_TO = {"service@hschinese.com"};

	public static final int PERIOD_DOUBLE_CLICK_BACK = 2000;  //两次点击 “back”退出时间间隔
	//网络相关
	public static final int REQUEST_TIMEOUT = 1000*20; 
	public static final int SO_TIMEOUT = 1000*30;
	public static final int REQUEST_TIMEOUT_SHORT = 1000*3;
	public static final int SO_TIMEOUT_SHORT = 1000*3;
	public static final String WEB_SITE = "http://www.hschinese.com/app/api/";  //网络访问地址  正式站点    http://www.hellohsk.com/app/api/
	public static final String HS_WEB_SITE = "http://www.hschinese.com/app/api/";  //正式站点http://www.hschinese.com/app/api/  测试站点http://test.hschinese.com/app/api/
	public static final String Life_WEB_SITE = "http://api.hschinese.com/life/";   //正式站点http://api.hellohsk.com/life/  测试站点http://api.hellohsk.com/life_test/
	//http://api.hellohsk.com/hellohsk_test/user/anonymity/register  游客登录测试站点
//	public static final String GUIST_WEB_SITE = "http://api.hellohsk.com/wordpass/";  //第三方登录注册方式（创建个人档案）
	public static final String DATABASE_NAME = "pronunciationDB";   //数据库名称
	public static final int DATABASE_VERSION = 1;  //前面数据库版本  1
	
	public static final String LABEL_WEB_SITE = "http://api.hellohsk.com/hpns/";
	/**
	 * 检测是否需要更新的地址
	 */
	public static final String VERSION_CHECK = Life_WEB_SITE+"version/check";

	public static final String SIGN_IN_STATUS = "signStatus"; //登录状态
	public static final String UID = "uid";
	public static final String EMAIL = "email";
	public static final String NIKENAME = "nikeName";
	public static final String PICTURE = "picture";
	public static final String ISGUEST = "isguest";
	public static final String GOLDNUM = "goldNum";
	public static final String ROLE = "userRole";
	public static final String ENDTIME = "userEndTime";
	public static final String TOURISTID = "touristId";

	public static final String SYSTEM_LANGUAGE = "SYSTEM_LANGUAGE"; //系统语言
	/* 语言 */
	public static final String LANGUAGE_ENGLISH = "en";
	public static final String LANGUAGE_CHINESE = "zh";
	public static final String LANGUAGE_JAPANESE = "ja";
	public static final String LANGUAGE_KOREAN = "ko";
	public static final String LANGUAGE_CHINA = "zh";
	public static final String SP_BASIC = "sp_basic";   //保存基础需要的sharedPreference

	// 用于存放课程文件的相对路径
	public static final String RELATIVE_EXTERNAL_DATA_PATH = "/hsChinese/life/";

	public static final int SHORTEST_PASSWORD_LENGTH = 6;  //最短密码长度

	public static final String MESSAGE_API_VERSION = "2";

	public static final String MSG_COUNT = "msg_count";

	public static final String FILE_SE = "/";

	/* 默认字体大小 */
	public static final int DEFAULT_FONT_SIZE_SP = 16;

	public static final String PINYINVIEW_SPACE = "^";   //拼音显示分隔符

	public static final String SPEALINE_LINE = "\\|";

	public static final String SPEALINE_LINE_FLAG = "|";

	public static final String TEMP = "temp";

	//音频文件名称
	public static final String AUDIO_FILE_NAME = "AUDIO_FILE_NAME";
	//播放结束时发送广播给activity的Intent中用的action名称
	public static final String ACTION_PLAY_COMPLETE = "ACTION_PLAY_COMPLETE";
	//一些地方需要自动播放的timer
	public static final String AUTO_PLAYER_TIMER = "AUTO_PLAYER_TIMER";
	/* Task 延迟启动的时间 */
	public static final String TASK_DELAY = "TASK_DELAY";

	//百分号符号
	public static final String PERCENT = "%";

	//百分比分隔符
	public static final String PERCENT_sepaline = "/";

	//词汇和常用表达中间每个词的音频间隔时间
	public static final Long PAUSE_TIME_MEDIUM = 1000L;

	public static final Long SELECT_TIME_MEDIUM = 200L;

	public static final int REFRESH_TIMEOUT = 1000*100;

	public static final String DEFAULT_CID = "12";

	public static final String DEFAULT_CID_PARENT = "7";

	public static final String POSTLIMIT = "postlimit";

	public static final String REPLYLIMIT = "replyLimit";

	/* 同步PracticeRecord 完成的广播 */
	public static final String ACTION_SYNC_PRACTICE_RECORD_COMPLETE = "ACTION_SYNC_PRACTICE_RECORD_COMPLETE";

	public static final String DEFAULT_FORMAT = "yyyy-MM-dd";

	public static final String rootDir = Environment.getExternalStorageDirectory().getAbsolutePath() + "/hsChinese";
	public static final String appDir = "/Pronunciation";
	public static final String tempDir = "/temp";
	public static final String tempRecordFile = Constant.rootDir + Constant.appDir + Constant.tempDir + "/record_temp.pcm";

	public static final String PRODUCT_ID = "HelloTalk_android";

}
